/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.strategy.old.duck;

/**
 * 鸭子基类，quack(),fly()和dispaly()右具体子类决定
 * 
 * @author aeky
 */
public abstract class Duck {

    /**
     * 鸭子叫
     */
    public abstract void quack();

    /**
     * 鸭子飞
     */
    public abstract void fly();

    /**
     * 鸭子游泳
     */
    public void swim() {
        System.out.println("swim");
    }

}
